package com.woyou.ui.activity.orderdetail;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.citaq.ideliver.R;
import com.woyou.bean.OrderDetail;

/**
 * 自动完成的订单状态
 * 
 * @author zhou
 *
 */
public class AutoCompleteOrderViewCreater extends StateViewCreater {

	public AutoCompleteOrderViewCreater(Context context, ViewControl uiControl,
			OrderDetail detail) {
		super(context, uiControl, detail);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void createView() {
		mViewArr = new View[1];
		
		View view1 = View.inflate(mContext, R.layout.orderdetial_item_onebutton, null);
		TextView commendText = (TextView) view1.findViewById(R.id.button1);
		commendText.setText("评价");
		commendText.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				mUiControl.popCommentDialog();
			}
		});
		
		mViewArr[0] = view1;
		
	}

}
